<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class ApprovalRecord extends Model
{
    use HasFactory;

    protected $fillable = ['company_id','approval_id','node_id','role_id','admin_id','result','comment','trans_to','processed_at','files','level'];
    const POSTONLY = ['company_id','approval_id','node_id','role_id','admin_id','result','comment','trans_to','processed_at','files','level'];

    protected function serializeDate(\DateTimeInterface $date)
    {
        return $date->format($this->dateFormat ?: 'Y-m-d H:i:s');
    }

}
